﻿using System.ComponentModel.DataAnnotations;

namespace ShanjinPDAUI.ModelEntity
{
    public class UnpackingAre_Entity
    {
        [Key]

        public int Id { get; set; }
        public int Deviceid { get; set; }
        public int Station { get; set; }
        public int PreStation { get; set; }
        public int BackStation { get; set; }
        public int Area { get; set; }
        public int Flow { get; set; }
        public bool IsEnable { get; set; }

        /// <summary>
        /// 带空卷取满
        /// </summary>
        public int GetFullWithEmptyTaskType { get; set; }
        /// <summary>
        /// 取满
        /// </summary>
        public int GetFullTaskType { get; set; }
        /// <summary>
        /// 退满从AGV
        /// </summary>
        public int PutFullTaskTypeFromAGV { get; set; }
        /// <summary>
        /// 退满从缓存架
        /// </summary>
        public int PutFullTaskTypeFromCache { get; set; }

        /// <summary>
        /// 退满从主机
        /// </summary>
        public int PutFullTaskTypeFromMacine { get; set; }


        public string MESName { get; set; }
        public UnpackingAre_Entity Clone()
        {
            UnpackingAre_Entity _UnpackingAre_Entity = new UnpackingAre_Entity()
            {
                Deviceid = this.Deviceid,
                Station = this.Station,
                PreStation = this.PreStation,
                BackStation = this.BackStation,
                Area = this.Area,
                Flow = this.Flow,
                IsEnable = this.IsEnable,
                GetFullTaskType = this.GetFullTaskType,
                PutFullTaskTypeFromAGV = this.PutFullTaskTypeFromAGV,
                PutFullTaskTypeFromCache = this.PutFullTaskTypeFromCache,
                PutFullTaskTypeFromMacine = this.PutFullTaskTypeFromMacine,

            };
            return _UnpackingAre_Entity;
        }
    }
}
